-
Notifications
You must be signed in to change notification settings - Fork 578
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🌱 refactor tags package to support other services #1848
🌱 refactor tags package to support other services #1848
Conversation
The existing tags package applies tags to EC2 only. This is a small refactor to allow a 'apply' function to be passed in and this function contains resource/service specific functionality to apply the tags. The tags package still keeps the diff functionality and this can be used by new services such as EKS.
Changed the tags package to use a builder struct thats created with opts. Moved the EC2 tag setting back into the package.
/lgtm i'll leave final approve up to @vincepri? :D |
@vincepri is off this week, I'll take a look. |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: randomvariable The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What this PR does / why we need it:
The existing tags package applies tags to EC2 only. This is a small refactor to allow a 'apply' function to be passed in and this function contains resource/service specific functionality to applythe tags. The tags package still keeps the diff functionality. This will help with apply tags in the EKS control plane reconciler ( #1787 ).
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #1843